﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Tdv.Wfrp.CharacterGenerator.Infrastructure.Repositories;
using Tdv.Wfrp.CharacterGenerator.Domain.Characteristics;

namespace Tdv.Wfrp.CharacterGenerator.Test.Infrastructure
{
    [TestClass]
    public class CharacteristicRepositoryTest
    {

        private CharacteristicRepository _characteristicRepository;
        [TestInitialize]
        public void Init()
        {
            _characteristicRepository = new CharacteristicRepository(new SessionTestService());
        }

        [TestMethod]
        public void GetAll()
        {
            ICollection<Characteristic> characteristics = _characteristicRepository.GetAll();
            Assert.IsNotNull(characteristics);
        }

        [TestMethod]
        public void Save()
        {
            Characteristic characteristic = new Characteristic(new Guid());
            _characteristicRepository.Save(characteristic);
        }
    }
}
